<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>社区</title>
    <script src="/static/js/jquery-1.11.3.min.js" type="text/javascript"></script>
    <!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
    <!-- 可选的 Bootstrap 主题文件（一般不用引入） -->
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">
    <!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
    <link rel="stylesheet" href="/static/css/community.css"/>
</head>
<body>
<nav th:insert="~{nav.html :: navigation}"></nav>
<main>
    <div class="container-fluid main">
        <div class="row">
            <div class="col-lg-9 col-lg-12 col-sm-12">
                <h2><span class="glyphicon glyphicon-send" aria-hidden="true"></span>&nbsp;发起</h2>
                <hr>
                <form action="/publish" method="post">
                    <div class="form-group">
                        <label for="title">问题标题（简单扼要）：</label>
                        <input type="text" class="form-control" id="title" required placeholder="问题标题" name="title" th:value="${title}">
                    </div>
                    <div class="form-group">
                        <label for="description">问题补充（必填，请参考提示）：</label>
                        <textarea class="form-control" name="description" required id="description" cols="10" rows="3" ></textarea>
                    </div>
                    <div class="form-group">
                        <label for="tag">添加标签：</label>
                        <input type="text" class="form-control" id="tag" required placeholder="输入标签，以英文逗号分隔" name="title" >
                    </div>
                    <div class="col-lg-9 col-md-12 col-sm-12 col-xs-12">
                        <div class="alert alert-danger" th:text="${error}" th:if="${error!=null}"></div>
                    </div>
                    <div class="col-lg-9 col-md-12 col-sm-12 col-xs-12 sub">
                        <button type="submit" class="btn btn-success">发布</button>
                    </div>
                </form>
            </div>
            <!--            tab键一键生成-->
            <div class="col-lg-3 col-md-12 col-sm-12">
                <h3>Creating an OAuth App</h3>
                You can create and register an OAuth App under your personal account or under any organization you have administrative access to. While creating your OAuth app, remember to protect your privacy by only using information you consider public.
            </div>
        </div>
    </div>
</main>
</body>
</html>